* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.login-wrapper {
  min-height: 100vh;
  width: 100%;
  background-color: #f5f7fa;
  background-image: linear-gradient(120deg, #e0f7ff 0%, #f5f7fa 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.login-container {
  display: flex;
  width: 950px;
  height: 580px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 95vw;
}

.left-section {
  flex: 1;
  background: linear-gradient(135deg, #409EFF 0%, #64b5ff 100%);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-section {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  color: #409EFF;
  font-weight: bold;
  font-size: 20px;
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
}

.welcome-text {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 15px;
}

.system-intro {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
}

.features {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  font-size: 12px;
}

.login-form {
  width: 100%;
}

.form-title {
  font-size: 24px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.form-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #409EFF;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  color: white;
}

/* 表单样式优化 */
.el-form-item {
  margin-bottom: 28px;
  
  &:last-child {
    margin-bottom: 20px;
  }
}

/* 输入框样式优化 */
:deep(.el-input__wrapper) {
  border-radius: 8px;
  padding: 8px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  
  &:hover {
    box-shadow: 0 2px 6px rgba(64, 158, 255, 0.15);
  }
  
  &.is-focus {
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  }
}

.el-button {
  width: 100%;
  height: 44px;
  font-size: 16px;
  margin-top: 10px;
}

.links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
}

.links a {
  color: #409EFF;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.system-highlight {
  margin-top: 30px;
  padding: 15px;
  background-color: #f0f9ff;
  border-radius: 6px;
  border-left: 4px solid #409EFF;
}

.highlight-title {
  font-weight: 500;
  color: #409EFF;
  margin-bottom: 8px;
}

.highlight-text {
  font-size: 14px;
  color: #606266;
  line-height: 1.5;
}

.role-switch {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  background-color: #f0f2f5;
  border-radius: 20px;
  padding: 4px;
}

.role-btn {
  padding: 8px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  border: none;
  background: transparent;
}

.role-btn.active {
  background-color: white;
  color: #409EFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-info {
  margin-top: 20px;
  padding: 12px;
  background-color: #fff6f6;
  border-radius: 6px;
  border-left: 4px solid #f56c6c;
  font-size: 14px;
  color: #f56c6c;
}

.card-exchange {
  margin-top: 20px;
  padding: 12px;
  background-color: #f0f9ff;
  border-radius: 6px;
  border-left: 4px solid #67c23a;
  font-size: 14px;
  color: #67c23a;
}

// 管理员登录特殊样式
.admin-login .form-title-icon {
  background-color: #f56c6c;
}

// 验证码容器
.captcha-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-input {
  flex: 1;
}

.captcha-image {
  width: 120px;
  height: 40px;
  background-color: #f5f7fa;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #409EFF;
  cursor: pointer;
  user-select: none;
  border: 1px solid #dcdfe6;
  transition: all 0.3s;

  &:hover {
    border-color: #409EFF;
    background-color: #ecf5ff;
  }
}

// 响应式设计
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 95%;
    height: auto;
  }

  .left-section {
    padding: 30px 20px;
  }

  .right-section {
    padding: 30px 20px;
  }

  .role-switch {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px;
    justify-content: center;
  }
}